package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._20职责链模式._1基本代码;

class ConcreteHandler3 extends Handler{
    public void handleRequest(int request){
        if (request >=20 && request < 30){
            System.out.println(this.getClass().getSimpleName()+" 处理请求 "+request);
        }
        else if (successor != null){
            successor.handleRequest(request);
        }
    }
}